package com.yanqu.road.entity.player;

import com.yanqu.road.entity.DataObject;

import java.math.BigInteger;
import java.util.Objects;

/**
 * 玩家关卡数据
 */
public class UserPass extends DataObject {

	private long userId;

	private int passId;

	private int passProgress;

	private BigInteger loseBlood = BigInteger.ZERO;       //打掉的血量

	private int buyBuffTimes;

	private int itemBuyBuffTimes;

	private long modifyTime;

	public long getUserId() {
		return userId;
	}

	public void setUserId(long userId) {
		if (this.userId != userId) {
			this.userId = userId;
			setUpdateOption();
		}
	}

	public int getPassId() {
		return passId;
	}

	public void setPassId(int passId) {
		if (this.passId != passId) {
			this.passId = passId;
			setUpdateOption();
		}
	}

	public int getPassProgress() {
		return passProgress;
	}

	public void setPassProgress(int passProgress) {
		if(this.passProgress != passProgress) {
			this.passProgress = passProgress;
			setUpdateOption();
		}
	}

	public BigInteger getLoseBlood() {
		return loseBlood;
	}

	public void setLoseBlood(BigInteger loseBlood) {
		if(!Objects.equals(this.loseBlood, loseBlood)) {
			this.loseBlood = loseBlood;
			setUpdateOption();
		}
	}

	public int getBuyBuffTimes() {
		return buyBuffTimes;
	}

	public void setBuyBuffTimes(int buyBuffTimes) {
		if(this.buyBuffTimes != buyBuffTimes) {
			this.buyBuffTimes = buyBuffTimes;
			setUpdateOption();
		}
	}

	public int getItemBuyBuffTimes() {
		return itemBuyBuffTimes;
	}

	public void setItemBuyBuffTimes(int itemBuyBuffTimes) {
		if(this.itemBuyBuffTimes != itemBuyBuffTimes) {
			this.itemBuyBuffTimes = itemBuyBuffTimes;
			setUpdateOption();
		}
	}

	public long getModifyTime() {
		return modifyTime;
	}

	public void setModifyTime(long modifyTime) {
		if(this.modifyTime != modifyTime) {
			this.modifyTime = modifyTime;
			setUpdateOption();
		}
	}
}
